/* =====================================================================
   LYMANKONG WEB — THÈME 2027 POUR TOUTES LES PAGES INTÉRIEURES
   Se charge APRÈS style.css, design-refactor.css, corrections-lisibilite.css
   (et anniversaire80.css, login.css…). Il ne remplace aucun fichier :
   il redéfinit les couleurs, les polices, les formes et ajoute le nouvel
   en-tête, le nouveau pied de page et les animations.
   Thème sombre par défaut, clair avec body.light-mode.
   ===================================================================== */
@property --hv-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- 1. Couleurs et polices (aussi pour les anciens fichiers CSS) ---------- */
body.hv-site {
    --bg: #0B1430; --surface: #131D3D; --surface2: #18244A; --ink: #EEF1F8; --text: #DCE2EF; --muted: #A9B3C9;
    --line: rgba(238, 241, 248, .12); --primary: #8DA9FF; --primary-ink: #0B1430; --gold-text: #F0B95A;
    --green: #5FD3A0; --night: #081026; --shadow: rgba(0, 0, 0, .35);
    --f-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif; --f-serif: 'Instrument Serif', Georgia, serif;
    --f-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --r-shape: 30px 30px 30px 6px; --r-small: 18px 18px 18px 4px;
    /* anciennes variables de style.css */
    --primary-blue: #0E1B3D; --ultramarine: #1F4FD1; --glow: #8DA9FF; --gold: #E8A33A; --white: #FFFFFF;
    --font-heading: var(--f-display); --font-body: var(--f-body); --font-accent: var(--f-body);
    --bg-primary: #0B1430; --bg-secondary: #131D3D; --bg-tertiary: rgba(255, 255, 255, .04);
    --text-primary: #EEF1F8; --text-secondary: #DCE2EF; --text-tertiary: #A9B3C9;
    --border-color: rgba(238, 241, 248, .12); --card-bg: #131D3D; --input-bg: #0B1430; --input-text: #EEF1F8; --label-color: #DCE2EF;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .25); --shadow-md: 0 14px 34px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 54px rgba(0, 0, 0, .45);
    /* variables des pages 80 ans : version sobre et institutionnelle */
    --a80-gold: #E8A33A; --a80-gold-soft: rgba(232, 163, 58, .12); --a80-gold-line: rgba(232, 163, 58, .35);
    --a80-ink: #EEF1F8; --a80-ink-soft: #C9D2E6; --a80-surface: #131D3D; --a80-surface-strong: #0E1B3D;
    --a80-border: rgba(232, 163, 58, .22); --a80-shadow: 0 18px 44px rgba(0, 0, 0, .4); --a80-radius: 26px; --a80-radius-sm: 16px;
    background: var(--bg) !important; color: var(--text); font-family: var(--f-body);
}
body.hv-site.light-mode {
    --bg: #FAF7F0; --surface: #FFFFFF; --surface2: #F1ECE1; --ink: #0E1B3D; --text: #1B2440; --muted: #5A6378;
    --line: rgba(14, 27, 61, .12); --primary: #1F4FD1; --primary-ink: #FFFFFF; --gold-text: #8C5A0A; --green: #17704F;
    --night: #0E1B3D; --shadow: rgba(14, 27, 61, .14);
    --glow: #1F4FD1; --bg-primary: #FAF7F0; --bg-secondary: #FFFFFF; --bg-tertiary: rgba(14, 27, 61, .04);
    --text-primary: #0E1B3D; --text-secondary: #1B2440; --text-tertiary: #5A6378;
    --border-color: rgba(14, 27, 61, .12); --card-bg: #FFFFFF; --input-bg: #FFFFFF; --input-text: #0E1B3D; --label-color: #0E1B3D;
    --shadow-sm: 0 4px 12px rgba(14, 27, 61, .08); --shadow-md: 0 14px 34px rgba(14, 27, 61, .12); --shadow-lg: 0 24px 54px rgba(14, 27, 61, .16);
    --a80-gold: #8C5A0A; --a80-gold-soft: rgba(232, 163, 58, .12); --a80-gold-line: rgba(140, 90, 10, .3);
    --a80-ink: #0E1B3D; --a80-ink-soft: #5A6378; --a80-surface: #FFFFFF; --a80-surface-strong: #FFFFFF;
    --a80-border: rgba(14, 27, 61, .12); --a80-shadow: 0 18px 44px rgba(14, 27, 61, .12);
    color: var(--text);
}
html { scroll-behavior: smooth; }
body.hv-site { -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Titres */
body.hv-site h1, body.hv-site h2, body.hv-site h3, body.hv-site h4, body.hv-site .section-title {
    font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
body.hv-site .section-title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; }
body.hv-site.light-mode .section-title, body.hv-site.light-mode h2, body.hv-site.light-mode h3, body.hv-site.light-mode h4 { color: var(--ink); }
body.hv-site p { color: inherit; }
body.hv-site .text-muted { color: var(--muted) !important; }
body.hv-site a { transition: color .25s ease; }

/* ---------- 2. Utilitaires partagés ---------- */
.hv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hv-serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.hv-gold-shimmer { background: linear-gradient(90deg, #E8A33A 0%, #FFE3A3 45%, #E8A33A 60%, #C98A1E 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: hvShimmer 4s linear infinite; }
.hv-white { color: #FFFFFF !important; }
.hv-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; background: none; color: inherit; font-family: var(--f-body); }
.hv-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.hv-btn:hover::after { left: 130%; }
.hv-btn:hover { transform: translateY(-3px); }
body.hv-site .hv-btn--primary { background: var(--primary); color: var(--primary-ink); }
body.hv-site .hv-btn--gold { background: #E8A33A; color: #0E1B3D; }
body.hv-site .hv-btn--gold:hover { color: #0E1B3D; box-shadow: 0 14px 30px rgba(232, 163, 58, .35); }
body.hv-site .hv-btn--outline-light { border-color: rgba(201, 210, 230, .4); color: #FFFFFF; }
body.hv-site .hv-btn--outline-light:hover { border-color: #E8A33A; color: #FFFFFF; }
.hv-icon-btn { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700; font-size: 13px; font-family: var(--f-body); transition: transform .3s ease, border-color .3s ease; }
.hv-icon-btn:hover { transform: rotate(-8deg) scale(1.05); border-color: #E8A33A; }
body.hv-site :focus-visible { outline: 3px solid #E8A33A; outline-offset: 3px; }

/* ---------- 3. Bandeau d'informations ---------- */
.hv-topbar { background: var(--night); color: #C9D2E6; font-size: 13px; position: relative; z-index: 1001; }
.hv-topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.hv-topbar__infos { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hv-topbar__infos a { text-decoration: none; color: inherit; }
.hv-topbar__infos a:hover { color: #E8A33A; }
.hv-topbar i { color: #E8A33A; margin-right: 4px; }
.hv-topbar__motto { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

/* ---------- 4. Nouvel en-tête (pages publiques) ---------- */
body.hv-site > header.hv-header {
    position: sticky; top: 0; z-index: 1000; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 18px;
    width: auto; min-height: 80px; padding: 0 max(24px, calc((100% - 1200px) / 2 + 24px)); background: var(--bg); border-bottom: 1px solid transparent; box-shadow: none;
    transition: transform .4s ease, background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
body.hv-site > header.hv-header.scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 10px 30px var(--shadow); padding-top: 0; padding-bottom: 0; }
body.hv-site > header.hv-header.header-hidden { transform: translateY(-100%); }
body.hv-site > header.hv-header + section:not(.hero), body.hv-site > header.hv-header + main { padding-top: 64px !important; }
.hv-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; min-width: 0; }
.hv-brand img { width: 62px; height: 40px; object-fit: contain; background: #FFFFFF; border-radius: 10px 10px 10px 3px; padding: 2px 4px; border: 0; }
.hv-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hv-brand__name, .hv-brand__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-brand__name { font-family: var(--f-display); font-weight: 800; font-size: 17px; color: var(--ink); }
.hv-brand__sub { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
body.hv-site > header.hv-header nav { flex-basis: auto; }
body.hv-site > header.hv-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 18px; }
body.hv-site > header.hv-header nav a { position: relative; display: inline-block; min-height: 0; white-space: nowrap; text-decoration: none; text-transform: none; text-shadow: none; font-family: var(--f-body); font-weight: 600; font-size: 14.5px; color: var(--text); padding: 10px 2px; border: 0; }
body.hv-site > header.hv-header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: #E8A33A; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
body.hv-site > header.hv-header nav a:hover::after, body.hv-site > header.hv-header nav a.active::after { transform: scaleX(1); transform-origin: left; }
body.hv-site > header.hv-header nav a:hover { color: var(--primary); border: 0; }
body.hv-site > header.hv-header nav a.active { color: var(--ink); border: 0; }
body.hv-site > header.hv-header nav a.hv-nav-80 { color: var(--gold-text); }
body.hv-site > header.hv-header .hv-nav-login { display: none; }
.hv-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
body.hv-site > header.hv-header #theme-toggle, body.hv-site > header.hv-header #lang-toggle { position: static; transform: none; box-shadow: none; }
body.hv-site > header.hv-header #theme-toggle { width: 44px; padding: 0; }
body.hv-site > header.hv-header .menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 18px; order: 3; flex: 0 0 44px; }
.hv-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), #E8A33A); border-radius: 0 3px 3px 0; }

/* ---------- 5. En-tête des espaces connectés (tableau de bord, sondages, connexion…) ---------- */
body.hv-app > header:not(.hv-header) { background: color-mix(in srgb, var(--bg) 88%, transparent) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line) !important; box-shadow: 0 10px 30px var(--shadow); padding: .7rem max(24px, 5%); }
body.hv-app > header:not(.hv-header) .logo { flex-direction: row; gap: 12px; }
body.hv-app > header:not(.hv-header) .logo img { width: 62px; height: 40px; object-fit: contain; border-radius: 10px 10px 10px 3px; border: 0; background: #FFFFFF; padding: 2px 4px; }
body.hv-app > header:not(.hv-header) .logo span { color: #E8A33A !important; text-shadow: none !important; font-family: var(--f-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
body.hv-app > header:not(.hv-header) nav a { color: var(--ink) !important; text-shadow: none !important; border: 1px solid var(--line); border-radius: 999px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: var(--surface); transition: transform .3s ease, border-color .3s ease, color .3s ease; }
body.hv-app > header:not(.hv-header) nav a:hover, body.hv-app > header:not(.hv-header) nav a.active { border-color: #E8A33A; color: #E8A33A !important; transform: translateY(-2px); border-bottom: 1px solid #E8A33A; }
body.hv-app > header:not(.hv-header) nav a i { font-size: 1.05rem; color: inherit; }
body.hv-site .theme-btn, body.hv-site .lang-btn { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 999px !important; font-family: var(--f-body); font-weight: 700; box-shadow: 0 10px 24px var(--shadow) !important; }
body.hv-site .theme-btn:hover, body.hv-site .lang-btn:hover { border-color: #E8A33A !important; }

/* ---------- 6. Nouveau pied de page ---------- */
body.hv-site > footer.hv-footer { position: relative; overflow: hidden; background: var(--night) !important; color: #C9D2E6; padding: 80px 0 32px; margin: 0; border: 0; text-align: left; }
.hv-footer .hv-stack { display: flex; flex-direction: column; gap: 14px; }
.hv-footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid rgba(201, 210, 230, .18); }
body.hv-site .hv-footer__cta h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; max-width: 640px; color: #FFFFFF; margin: 0; }
.hv-footer__row { display: flex; flex-wrap: wrap; gap: 14px; }
.hv-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.hv-footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: 22px; color: #FFFFFF; }
.hv-footer__brand img { width: 64px; height: 38px; object-fit: contain; background: #FFFFFF; border-radius: 10px 10px 10px 3px; padding: 2px 4px; }
body.hv-site .hv-footer__title { font-family: var(--f-body); font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0 0 4px; letter-spacing: 0; }
.hv-footer__links { display: flex; flex-direction: column; gap: 10px; }
.hv-footer__link { text-decoration: none; color: #C9D2E6; transition: color .25s ease, padding-left .25s ease; }
.hv-footer__link:hover { color: #E8A33A; padding-left: 6px; }
.hv-footer i { color: #E8A33A; margin-right: 6px; }
.hv-footer p { margin: 0; color: #C9D2E6; }
.hv-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 24px; border-top: 1px solid rgba(201, 210, 230, .18); }
.hv-footer__bottom .hv-gold-shimmer { font-weight: 700; }
.hv-star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #E8A33A; animation: hvTwinkle 3s ease-in-out infinite; }

/* ---------- 7. Retour en haut ---------- */
body.hv-site #back-to-top { right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 18px 18px 18px 4px; border: 0; background: var(--primary); color: var(--primary-ink); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }

/* ---------- 8. Composants des anciennes pages, au nouveau style ---------- */
/* Sections et en-têtes de page */
body.hv-site section { background-color: transparent; }
body.hv-site .hero::after { background: linear-gradient(180deg, rgba(8, 16, 38, .55), rgba(8, 16, 38, .85)) !important; }
body.hv-site .hero h1, body.hv-site .hero h2 { color: #FFFFFF; }

/* Cartes : grands arrondis avec un coin vif, bordure fine, élévation au survol */
body.hv-site .card, body.hv-site .team-member, body.hv-site .timeline-content, body.hv-site .about-content,
body.hv-site .contact-form-inner, body.hv-site .feature-item, body.hv-site .poll-facebook, body.hv-site .dash-section,
body.hv-site .dash-stat-card, body.hv-site .login-card, body.hv-site .submission-card {
    background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-shape) !important; box-shadow: 0 14px 34px var(--shadow) !important; color: var(--text);
}
body.hv-site .card, body.hv-site .team-member, body.hv-site .feature-item { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, border-color .45s ease; }
body.hv-site .card:hover, body.hv-site .team-member:hover, body.hv-site .feature-item:hover { transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-8px); border-color: rgba(232, 163, 58, .55) !important; box-shadow: 0 30px 60px var(--shadow) !important; }
body.hv-site .card::before, body.hv-site .card::after { border-radius: inherit; }
body.hv-site .card-header { background: var(--surface2) !important; color: var(--ink) !important; border-radius: 0 !important; border-bottom: 1px solid var(--line); }
body.hv-site .card-header h3, body.hv-site .card-header h4, body.hv-site .card-body h3, body.hv-site .card-body h4 { color: var(--ink) !important; }
body.hv-site .card-body { color: var(--text); }
body.hv-site .card img, body.hv-site .team-member img { transition: transform .7s ease; }
body.hv-site .gallery-item { border-radius: var(--r-shape) !important; border: 1px solid var(--line); box-shadow: 0 14px 34px var(--shadow); }
body.hv-site .gallery-item .category-badge, body.hv-site .news-date { background: #E8A33A !important; color: #0E1B3D !important; border-radius: 999px !important; font-weight: 700; }
body.hv-site .timeline-date { color: #E8A33A !important; font-family: var(--f-display); }
body.hv-site .timeline-content::before { display: none; }

/* Boutons des anciennes pages */
body.hv-site .btn-cta, body.hv-site .btn-submit, body.hv-site .btn-open-news, body.hv-site .vp-btn {
    background: #E8A33A !important; color: #0E1B3D !important; border: 2px solid #E8A33A !important; border-radius: 999px !important; font-family: var(--f-body) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none; transition: transform .25s ease, box-shadow .25s ease;
}
body.hv-site .btn-cta:hover, body.hv-site .btn-submit:hover, body.hv-site .btn-open-news:hover, body.hv-site .vp-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(232, 163, 58, .35) !important; color: #0E1B3D !important; }
body.hv-site .btn-read-more, body.hv-site .btn-directions, body.hv-site .btn-download, body.hv-site .filter-btn, body.hv-site .news-toggle {
    border-radius: 999px !important; border: 2px solid var(--line) !important; background: transparent !important; color: var(--ink) !important; font-family: var(--f-body); font-weight: 700; text-transform: none !important; letter-spacing: 0 !important; transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
body.hv-site .btn-read-more:hover, body.hv-site .btn-directions:hover, body.hv-site .btn-download:hover, body.hv-site .filter-btn:hover, body.hv-site .news-toggle:hover { border-color: #E8A33A !important; transform: translateY(-2px); color: var(--ink) !important; }
body.hv-site .filter-btn.active { background: #E8A33A !important; border-color: #E8A33A !important; color: #0E1B3D !important; }

/* Formulaires */
body.hv-site .form-group label, body.hv-site label { color: var(--text); }
body.hv-site .form-group input, body.hv-site .form-group textarea, body.hv-site .form-group select,
body.hv-site .search-wrapper input, body.hv-site #news-search, body.hv-site .search-container input {
    background: var(--bg) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 14px !important; font-family: var(--f-body);
}
body.hv-site .form-group input:focus, body.hv-site .form-group textarea:focus, body.hv-site .search-wrapper input:focus, body.hv-site #news-search:focus { outline: 2px solid #E8A33A; border-color: transparent !important; box-shadow: none !important; }

/* Fenêtres */
body.hv-site .modal { background: rgba(3, 5, 30, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body.hv-site .modal-content, body.hv-site .bio-modal-content { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-radius: 26px 26px 26px 6px !important; }
body.hv-site .modal-content h2, body.hv-site .modal-content h3, body.hv-site .modal-title { color: var(--ink) !important; }
body.hv-site .close-modal, body.hv-site .close-bio, body.hv-site .lightbox-close { color: var(--muted); }
body.hv-site .close-modal:hover, body.hv-site .close-bio:hover { color: #E8A33A; }

/* Pages des 80 ans : version sobre (moins d'effets, formes du nouveau thème) */
body.hv-site.a80-page .a80-title, body.hv-site.a80-page h1, body.hv-site.a80-page h2 { font-family: var(--f-display); }
body.hv-site .a80-btn { border-radius: 999px !important; font-family: var(--f-body) !important; text-transform: none !important; letter-spacing: 0 !important; }
body.hv-site .a80-btn--solid { background: #E8A33A !important; color: #0E1B3D !important; border-color: #E8A33A !important; }
body.hv-site .a80-portal, body.hv-site .a80-card, body.hv-site .a80-post, body.hv-site .a80-group { border-radius: var(--r-shape) !important; }
body.hv-site .a80-tab { border-radius: 999px !important; font-family: var(--f-body); }

/* ---------- 9. Apparition au défilement (ajoutée par theme-2027.js) ---------- */
.hv-reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.hv-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 10. Animations ---------- */
@keyframes hvShimmer { to { background-position: -220% 0; } }
@keyframes hvTwinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes hvRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- 11. Écrans moyens et téléphones ---------- */
@media (max-width: 1320px) {
    body.hv-site > header.hv-header nav ul { gap: 12px; }
    body.hv-site > header.hv-header nav a { font-size: 14px; }
    .hv-hide-md { display: none !important; }
    body.hv-site > header.hv-header .hv-nav-login { display: list-item; }
}
@media (max-width: 960px) {
    body.hv-site > header.hv-header { min-height: 72px; padding: 0 12px; gap: 8px; background: var(--bg); }
    body.hv-site > header.hv-header .menu-toggle { display: inline-grid; place-items: center; }
    body.hv-site > header.hv-header nav { display: none; flex-basis: auto; }
    body.hv-site > header.hv-header.menu-open nav { display: block; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); max-height: calc(100dvh - 140px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px 24px 24px 6px; padding: 12px 18px; box-shadow: 0 24px 48px rgba(0, 0, 0, .3); animation: hvRise .35s ease; }
    body.hv-site > header.hv-header.menu-open nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    body.hv-site > header.hv-header.menu-open nav a { display: block; padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
    body.hv-site > header.hv-header nav a::after { content: none; }
    body.hv-site > header.hv-header.menu-open nav li:last-child a { border-bottom: 0; }
    .hv-header__actions { margin-left: auto; gap: 6px; }
    .hv-brand { flex: 0 1 auto; }
    body.hv-site > header.hv-header + section:not(.hero), body.hv-site > header.hv-header + main { padding-top: 40px !important; }
    .hv-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hv-wrap { padding: 0 16px; }
    .hv-hide-sm { display: none !important; }
    .hv-brand__sub { display: none; }
    .hv-brand__name { font-size: 14px; }
    .hv-brand img { width: 52px; height: 34px; }
    body.hv-site > header.hv-header #lang-toggle { padding: 0 10px; font-size: 12px; }
}

/* Thème clair */
body.hv-site.light-mode > header.hv-header .menu-toggle, body.hv-site.light-mode .hv-icon-btn { background: #FFFFFF; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    body.hv-site *, body.hv-site *::before, body.hv-site *::after { animation: none !important; transition: none !important; }
    .hv-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 12. Correctifs : fonds intérieurs des anciennes cartes, bannières de page ---------- */
body.hv-site .card::after, body.hv-site .timeline-content::after, body.hv-site .contact-form::after,
body.hv-site .about-content::after, body.hv-site .feature-item::after, body.hv-site .testimonial-card::after { display: none !important; }
body.hv-site .timeline-content { backdrop-filter: none; }
body.hv-site .timeline-content h4 { color: var(--ink) !important; }
body.hv-site .timeline-content p, body.hv-site .timeline-grade { color: var(--muted) !important; }
body.hv-site .timeline::after, body.hv-site .timeline::before { background: linear-gradient(180deg, #E8A33A, rgba(232, 163, 58, .2)) !important; }
body.hv-site .contact-form { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* En-tête des pages (À propos, Équipe…) : photo du lycée qui zoome, comme sur l'accueil */
body.hv-site:not(.hv-app) section.hero {
    position: relative; isolation: isolate; overflow: hidden; height: auto !important; min-height: 360px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 110px 24px 96px !important; margin: 0;
}
body.hv-site:not(.hv-app) section.hero::before {
    display: block !important; content: ''; position: absolute; inset: 0; z-index: -2;
    background: url('../images/fond-connexion.jpeg') center / cover no-repeat; animation: hvZoom 20s ease-in-out infinite alternate;
}
body.hv-site:not(.hv-app) section.hero::after {
    display: block !important; content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8, 16, 38, .6), rgba(8, 16, 38, .88)) !important;
}
body.hv-site:not(.hv-app) section.hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; color: #FFFFFF !important; text-shadow: none; position: relative; }
body.hv-site:not(.hv-app) section.hero h1::after { content: ''; display: block; width: 72px; height: 3px; margin: 18px auto 0; background: #E8A33A; border-radius: 3px; }
body.hv-site.light-mode:not(.hv-app) section.hero h1 { color: #FFFFFF !important; }
@keyframes hvZoom { from { transform: scale(1); } to { transform: scale(1.15); } }

/* Titres de section : petit trait doré */
body.hv-site .section-title::after { background: #E8A33A !important; }

/* ---------- 13. Correctifs (pied de page en thème clair, recherche, contact) ---------- */
html { background: #081026; }
body.hv-site > footer.hv-footer, body.hv-site > footer.hv-footer p, body.hv-site > footer.hv-footer .hv-footer__links span, body.hv-site > footer.hv-footer .hv-footer__bottom > span:first-child, body.hv-site > footer.hv-footer .hv-footer__link { color: #C9D2E6 !important; }
body.hv-site > footer.hv-footer .hv-footer__title { color: #E8A33A !important; }
body.hv-site > footer.hv-footer .hv-footer__brand span, body.hv-site > footer.hv-footer .hv-footer__cta h2 > span:first-child { color: #FFFFFF !important; }
body.hv-site > footer.hv-footer .hv-footer__link:hover { color: #E8A33A !important; }
body.hv-site .search-wrapper { position: relative; display: flex; justify-content: center; margin: 0 auto 24px; max-width: 560px; }
body.hv-site .search-wrapper i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #E8A33A; z-index: 1; }
body.hv-site .search-wrapper input, body.hv-site .search-container input { width: 100%; min-height: 50px; padding: 0 18px 0 46px !important; font-size: 15px; }
body.hv-site .search-container input { padding-left: 18px !important; }
body.hv-site.contact-page::after { background: linear-gradient(180deg, rgba(8, 16, 38, .78), rgba(8, 16, 38, .94)) !important; }
body.hv-site.light-mode.contact-page::after { background: linear-gradient(180deg, rgba(250, 247, 240, .86), rgba(250, 247, 240, .96)) !important; }

/* Pages 80 ans : bannière sobre, même ton nuit dans les deux thèmes */
body.hv-site .a80-hero, body.hv-site.light-mode .a80-hero {
    background: linear-gradient(180deg, rgba(8, 16, 38, .80), rgba(8, 16, 38, .93)), url('../images/psentation-lycée.jpg') center / cover no-repeat !important;
}
body.hv-site .a80-hero { padding-top: clamp(64px, 8vw, 96px) !important; }
body.hv-site .a80-hero .a80-eyebrow { color: #E8A33A; }
body.hv-site .a80-hero .a80-countdown__num { color: #E8A33A; }
body.hv-site .a80-countdown__cell { border-radius: 20px 20px 20px 4px !important; }

/* ---------- 14. Espaces connectés (tableau de bord) ---------- */
body.hv-site { min-height: 100vh; display: flow-root; }
html:has(> body.hv-site) { background: #0B1430; }
html:has(> body.hv-site.light-mode) { background: #FAF7F0; }
body.hv-site .admin-panel-tab { border-radius: 999px !important; border: 1px solid var(--line) !important; background: var(--surface2) !important; color: var(--ink) !important; font-family: var(--f-body); font-weight: 700; }
body.hv-site .admin-panel-tab.active { background: #E8A33A !important; border-color: #E8A33A !important; color: #0E1B3D !important; }
body.hv-site .dash-section::before, body.hv-site .dash-stat-card::before { opacity: .5; border-radius: inherit; }
body.hv-site.light-mode .dash-section::before, body.hv-site.light-mode .dash-stat-card::before { display: none; }
body.hv-site select, body.hv-site input[type="text"], body.hv-site input[type="email"], body.hv-site input[type="password"], body.hv-site input[type="date"], body.hv-site input[type="number"], body.hv-site textarea {
    background-color: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
}
body.hv-app > header:not(.hv-header) { background: color-mix(in srgb, var(--bg) 92%, transparent) !important; }
body.hv-site .btn-submit[style*="#4e4e4e"] { background: transparent !important; border-color: var(--line) !important; color: var(--ink) !important; }
body.hv-site .btn-submit[style*="#4e4e4e"]:hover { border-color: #E8A33A !important; box-shadow: none !important; }
